DevForce Help Reference
SetValue(Object,Object) Method
Example 


Sets the value for this property on the selected instance.
Syntax
'Declaration
 
Public Overloads Overrides Sub SetValue( _
   ByVal instance As Object, _
   ByVal value As Object _
) 
'Usage
 
Dim instance As NavigationScalarEntityProperty(Of TInstance,TValue)
Dim instance As Object
Dim value As Object
 
instance.SetValue(instance, value)
public override void SetValue( 
   object instance,
   object value
)

Parameters

instance
value
Remarks
Any registered IdeaBlade.Validation.VerifierExecutionModes.OnBeforeSetTriggers and IdeaBlade.Validation.VerifierExecutionModes.OnAfterSetTriggers verifiers will be executed.

All setter interceptor actions are called when using this method. This method is called from auto-generated properties in the domain model.

Example
// Sample auto-generated property

#region Manager property

/// Gets or sets the Manager. 
[Bindable(false)]
[Display(AutoGenerateField=false)]
[DataMember]
[IbEm.RelationProperty("FK_Employees_Employees", IbEm.QueryDirection.ToRole2)]
public Employee Manager {
  get { return PropertyMetadata.Manager.GetValue(this); }
  set { PropertyMetadata.Manager.SetValue(this, value); }
}
#endregion Manager property
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

NavigationScalarEntityProperty<TInstance,TValue> Class
NavigationScalarEntityProperty<TInstance,TValue> Members
Overload List

Send Feedback